package main

import (
	"fmt"
	"os"

	"gitee.com/xntk2381/brainfuck"
)

func main() {
	if len(os.Args) < 2 {
		fmt.Println("Usage: brainfuck <program>")
		return
	}

	interpreter := brainfuck.NewInterpreter(os.Args[1])
	if err := interpreter.Run(); err != nil {
		fmt.Fprintf(os.Stderr, "Error: %v\n", err)
		os.Exit(1)
	}
}
